package edu.itstudy.services;

import java.util.List;

import edu.itstudy.bean.User;

public interface IUserServices {
	/**
	 * 用户注册
	 * @param user
	 * @return true:success
	 */
	public boolean register(User user);
	
	/**
	 * 用户登录
	 * @param user
	 * @return true:success
	 */
	public boolean login(User user);
	
	/**
	 * 获取首页实时热点
	 * @return List<User> 无数据 返回null
	 */
	public List<User> getIndexUser();
	
	/**
	 * 获取所有用户
	 * @return List<User> 无数据 返回null
	 */
	public List<User> getAllUser(User user);
	
	/**
	 * 根据uid查询用户对象
	 * @param uid
	 * @return user
	 */
	public User getUserById(int uid);
	
	/**
	 * 修改用户
	 * @param user
	 * @return true:success
	 */
	public boolean updateUser(User user);
	
	/**
	 * 根据uid删除用户
	 * @param uid
	 * @return true:success
	 */
	public boolean deleteUserById(int uid);
	
	/**
	 * 逻辑删除用户
	 * @param uid
	 * @return int 
	 */
	public boolean updateUserById(int uid,int flag);

}
